﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Mindfor.Web
{
	/// <summary>
	/// Represents error caused by module.
	/// </summary>
	public class ModuleException : Exception
	{
		/// <summary>
		/// Gets module name which caused exception.
		/// </summary>
		public string ModuleName { get; private set; }

		/// <summary>
		/// Initiazes new instance.
		/// </summary>
		/// <param name="moduleName">Module which caused exception.</param>
		/// <param name="message">Error message.</param>
		public ModuleException(string moduleName, string message)
			: base(message)
		{
			ModuleName = moduleName;
		}
	}
}
